home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
pcr
/
pcr4_4.lha
/
DIST
/
threads
/
UnixSysCallTranslation.s
< prev
next >
Wrap
Text File
|
1989-03-27
|
641b
|
26 lines
!
! UnixSysCallTranslation.s
!
! Demers, March 27, 1989 4:32:08 pm PST
!
! A collection of stubs that translate Unix system calls
! to equivalent PCR calls by inserting a jmp instruction.
!
! Input in UnixSysCallTranslation.h is a sequence of invocations
! of the macro XR_SYSCALL(pcrName,uName) defined below.
!
! Of course UnixSysCallTranslation.h should be constructed mechanically
! from UIO.h.
!
#define XR_SYSCALL(pcrName,uName) ; \
.seg "text" ; \
.global _XR_/**/pcrName ; \
.global _/**/uName ; \
_/**/uName: sethi %hi(_XR_/**/pcrName),%g1 ; \
jmp %g1+%lo(_XR_/**/pcrName) ; \
nop
#include "UnixSysCallTranslation.h"